var { deviceUtils, logUtils, appUtils } = require("../utils/index");
function main() {
  var mins = 3.5 * 60;
  var startTime = Date.now();
  console.show();
  console.log("novel", "3.5小时后关闭");
  setTimeout(function () {
    console.hide();
  }, 1500);
  while (true) {
    var now = Date.now();
    var hasExec = parseInt((now - startTime) / 1000 / 60);
    if (hasExec >= mins) {
      appUtils.closeAll();
      sleep(5 * 1000);
      deviceUtils.lockScreen();
      break;
    } else {
      sleep(20 * 1000);
    }
  }
}
Wang.main = main;
